package com.step.sprite.animation;

import com.step.graphic.TextureRegion;

public class Animation2d extends Animation{	
	public Animation2d(KeyFrame2d... frames) {
		super(frames);
	}
	
	public TextureRegion getRegion(){
		if(currentFrame == null){
			throw new RuntimeException("Animation2d-该动画没有添加关键帧");
		}
		return ((KeyFrame2d)currentFrame).region;
	}
}
